package com.etone.smartAudit.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.etone.smartAudit.domain.AuditExceptionSpecial;
import com.etone.smartAudit.mapper.AuditExceptionSpecialMapper;
import com.etone.smartAudit.vo.PagerVO;
import com.etone.smartAudit.vo.auditExceptionSpecial.AuditExceptionSpecialSimpleVO;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

/**
 * @author: sovy
 * @date: 2020/9/8
 * @description:
 */

@Service
public class AuditExceptionSpecialService extends ServiceImpl<AuditExceptionSpecialMapper, AuditExceptionSpecial> {

    /**
     * 基本信息列表
     *
     *
     * @param provinceId
     * @param page
     * @param pageSize
     * @return
     */
    public PagerVO<AuditExceptionSpecialSimpleVO> listSimple(Integer provinceId, int page, int pageSize) {
        Page<AuditExceptionSpecialSimpleVO> auditExceptionSpecialSimpleVOPage = PageHelper.startPage(page, pageSize).doSelectPage(() -> baseMapper.listSimple(provinceId));
        return PagerVO.of(auditExceptionSpecialSimpleVOPage);
    }
}
